﻿using PowerHub.MES.Entities;
using PowerHub.MES.Entities.Crew;
using PowerHub.MES.Entities.Shopfloor;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.DTO.Crew.DTO
{
    public class Crew_SchedulingPlanUpdateDto : BaseEntity
    {

        /// <summary>
        /// 计划编码
        /// </summary>
        public string? SchedulingPlanNo { get; set; }

        /// <summary>
        /// 计划名称
        /// </summary>
        public string? SchedulingPlanName { get; set; }

        /// <summary>
        /// 班组id
        /// </summary>
        public string? TeamBillId { get; set; }


        /// <summary>
        /// 班组名称
        /// </summary>
        public string? TeamName { get; set; }


        /// <summary>
        /// 状态
        /// </summary>
        public long? SchedulingPlanStatus { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 轮班方式
        /// </summary>
        public long? ShiftPattern { get; set; }

        /// <summary>
        /// 工单id
        /// </summary>
        public string? WorkOrderId { get; set; }
        /// <summary>
        /// 产线id
        /// </summary>
        public string? ProductionLineId { get; set; }

        /// <summary>
        /// 产线名称
        /// </summary>
        public string? ProductionLineName { get; set; }


        /// <summary>
        /// 明细
        /// </summary>
        public  List<CrewSchedulingPlanDetialsDtos>? CrewSchedulingPlanDetial { get; set; }
    }

    public class CrewSchedulingPlanDetialsDtos
    {
        /// <summary>
        /// Id
        /// </summary>
        public string? Id { get; set; }
        /// <summary>
        /// 排班计划Id
        /// </summary>
        public string? Crew_SchedulingPlanId { get; set; }
        /// <summary>
        /// 员工id
        /// </summary>
        public string? UserinfoId { get; set; }
        /// <summary>
        /// 员工工号
        /// </summary>
        public string? JobNumber { get; set; }
        /// <summary>
        /// 员工名称
        /// </summary>
        public string? UserName { get; set; }
        /// <summary>
        /// 员工部门名称
        /// </summary>
        public string? DepartmentName { get; set; }
        /// <summary>
        /// 工作站台id
        /// </summary>
        public string? WorkStationId { get; set; }
        /// <summary>
        /// 工作站台名称
        /// </summary>
        public string? WorkStationName { get; set; }
        /// <summary>
        /// 工序名称
        /// </summary>
        public string? ProcessName { get; set; }

        /// <summary>
        /// 状态 选项：0=正常 -1=请假
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
    }
}
